(mail-fcc): Take argument and use interactive spec to prompt, rather than
authorRoland McGrath <roland@gnu.org>
Thu, 2 Dec 1993 21:04:45 +0000 (21:04 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 2 Dec 1993 21:04:45 +0000 (21:04 +0000)
calling read-file-name explicitly.  This function is useful to call from
programs with a computed argument.

lisp/mail/sendmail.el

index e90d46bb94979cd55b92ddde897d81c009b66905..b09f09c96985eedb712c260abfdea0847670f669 100644 (file)
@@ -1,6 +1,6 @@
 ;;; sendmail.el --- mail sending commands for Emacs.
 
-;; Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1986, 1992, 1993 Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 ;; Keywords: mail
@@ -584,13 +584,13 @@ the user from the mailer."
       (progn (mail-position-on-field "to")
             (insert "\nBCC: "))))
 
-(defun mail-fcc ()
+(defun mail-fcc (folder)
   "Add a new FCC field, with file name completion."
-  (interactive)
+  (interactive "FFolder carbon copy: ")
   (expand-abbrev)
   (or (mail-position-on-field "fcc" t) ;Put new field after exiting FCC.
       (mail-position-on-field "to"))
-  (insert "\nFCC: " (read-file-name "Folder carbon copy: ")))
+  (insert "\nFCC: " folder))
 
 (defun mail-position-on-field (field &optional soft)
   (let (end